-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: (mvux) Add new UpdateItemasync Extension Method #2642
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: David <[email protected]>
2983601
to
4fe5eca
Compare
/// <param name="state">The list state onto which the item should be added.</param> | ||
/// <param name="oldItem">The old value of the item.</param> | ||
/// <param name="updater">How to update items.</param> | ||
/// <param name="ct">A token to abort the async add operation.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the ct
param comment mentions it is for aborting the add operation. Probably just a copy-paste thing but this isn't necessarily an add operation. We could be more general and just mention it as an async operation
/// <param name="state">The list state onto which the item should be added.</param> | ||
/// <param name="oldItem">The old value of the item.</param> | ||
/// <param name="updater">How to update items.</param> | ||
/// <param name="ct">A token to abort the async add operation.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the ct
param comment mentions it is for aborting the add operation. Probably just a copy-paste thing but this isn't necessarily an add operation. We could be more general and just mention it as an async operation
/// <param name="state">The list state onto which the item should be added.</param> | ||
/// <param name="oldItem">The old value of the item.</param> | ||
/// <param name="newItem">The new value for the item.</param> | ||
/// <param name="ct">A token to abort the async add operation.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the ct
param comment mentions it is for aborting the add operation. Probably just a copy-paste thing but this isn't necessarily an add operation. We could be more general and just mention it as an async operation
/// <param name="state">The list state onto which the item should be added.</param> | ||
/// <param name="oldItem">The old value of the item.</param> | ||
/// <param name="newItem">The new value for the item.</param> | ||
/// <param name="ct">A token to abort the async add operation.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the ct
param comment mentions it is for aborting the add operation. Probably just a copy-paste thing but this isn't necessarily an add operation. We could be more general and just mention it as an async operation
Co-authored-by: Steve Bilogan <[email protected]>
GitHub Issue (If applicable): closes #2582
PR Type
What kind of change does this PR introduce?
What is the current behavior?
To update an item, we need to do something like ListState.UpdateAllAsync(t => t.KeyEquals(newT), newT);
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):